local ClientOHOH = _G.ClientOHOH;

local M = ClientOHOH.class.new(script, ClientOHOH.files.OHOHOLYBUIBase());


function InitInsts(ui)
	ui.insts = {};
	ui.insts.OneWaveInfo ="ctrl.monstersNum"
	ui.insts.WaveProgress ="ctrl.wave"
	ui.insts.WaveScale ="ctrl.clipping"
	ui.insts.ExitBtn ="ctrl.exitBtn"
	
end

function M.new(...)
	return M(...);
end;
function M.ctor(self)
	InitInsts(self)

	M.super.ctor(self, ClientOHOH:GetPath_Loop("ReplicatedStorage.Resource.UI.BattleWaveInfoGui"));

end;


function M.dtor(self)
	M.super.dtor(self);
end;


function M.UpdateWaveProgress(self,now,max)
	local now=now-1
    self.insts.WaveProgress.Text="#"..now.."/"..max
    self.insts.WaveScale.Size=UDim2.fromScale(now/max,1)
end

function M.UpdateOneWave(self,killed,max)
    self.insts.OneWaveInfo.Text=killed.."/"..max
end

return M